.share-icon {
  $size: 35px; @include square($size);
  display: inline-block;
  margin: 0 3px;
  background: image_url('innoawards/share-icon.png') 0 0 no-repeat;
  background-size: auto 100%;
  transition: all .3s;
  transform: scale(1);
  &:hover {
    transform: scale(1.1);
  }
  &.weibo {
    background-position: -$size 0;
  }
  &.twitter {
    background-position: -$size*2 0;
  }
}

body.innoawards section.vote {
  .section-title { margin: 0;
    padding: 30px 0;
    background-color: $middle-blue;
    color: #fff;
  }
  .category-item {
    background-image: linear-gradient(#0d1c3b, #1a2e5c);
    color: #fff;
  }
  .badge {
    @include badge(80px);
  }
  .category-title {
    width: 20%;
    padding: 50px 0;
    color: lighten($color-brown, 10%);
    font-size: 1.1rem;
    font-family: $boldFont;
    background: image_url('innoawards/2015/bg-line.png') 0 0 no-repeat;
    background-size: 280% auto;
    .title {
      font-weight: bold;
    }
  }
  .products-list {
    width: 79%;
    padding: 50px 0;
  }
  .product-item {
    position: relative;
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    padding: 10px 20px 5px 20px;
    margin: 1%;
    width: 14%;
    background-color: #101f40;
    border: 1px solid #223357;
    transition: all .3s;
    transform: translateZ(0);
    .btn {
      background-color: $color-brown;
      color: #fff;
      border-radius: 0;
      margin: 10px 0;
      font-size: 1rem;
      line-height: 1;
      transition: all .3s;
      letter-spacing: 10px;
      padding-left: 20px;
      &:hover {
        background-color: darken($color-brown, 10%);
      }
    }
    .btn.share {
      background-color: #20446e;
      &:hover {
        background-color: lighten(#20446e, 10%);
      }
    }
    &:hover {
      box-shadow: 0 3px 17px 0 rgba(255, 255, 255, 0.1);
    }
  }
  .product-logo {
    display: inline-block;
    width: 100%;
    position: relative;
    .product-logo-wrap {
      position: relative;
      border-radius: 25px;
      overflow: hidden;
      width: 100%;
      padding-top: 100%;
    }
    img {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      min-height: 100%;
      min-width: 100%;
      max-height: 100%;
    }
  }
  .product-item:first-child .product-logo::after {
    position: absolute;
    content: '';
    width: 30px;
    height: 30px;
    z-index: 2;
    right: 0;
    top: 0;
    background-size: 100% 100%;
    background-image: url();
    transform: translate(5px, -5px);
  }
  .product-name {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 10px;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  @mixin hidePanel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    z-index: 0;
    transition: all .3s;
    &.show {
      z-index: 2;
      transform: translateY(0);
    }
  }
  .share-card {
    @include hidePanel;
    background-color: $dark-blue;
    .icon-container {
      width: 100%;
    }
    .mask {
      width: 100%;
      height: 100%;
    }
  } // share-card end
  .wechat-mask {
    @include hidePanel;
    width: 100%;
    height: 100%;
    background-color: $dark-blue;
    img {
      background-color: #fff;
      width: 80%;
      border: 3px solid $color-brown;
    }
  }

  // rwd
  @include mobile {
    background: $middle-blue;
    .products-list {
      width: 100%;
      padding: 20px 0;
    }
    .category-item {
      background: none;
      display: none;
      &.active {
        display: block;
      }
    }
    .category-item-mobile {
      display: inline-block;
      vertical-align: middle;
      margin: 5px;
      background-color: $color-brown;
      color: #fff;
      padding: 5px 10px;
      &.active {
        font-weight: bold;
        background-color: darken($color-brown, 10%);
      }
    }
    .product-item {
      width: 30%;
      margin: 1%;
      padding: 5px;
      .btn {
        font-size: .9rem;
        padding: 5px 2px;
        display: block;
        letter-spacing: normal;
      }
    }
    .product-name {
      font-size: .9rem;
    }
  } // mobile end
  @include tablet {
    .category-item .container {
      width: 100%;
    }
    .product-item {
      padding: 5px;
      .btn {
        letter-spacing: 5px;
        padding-left: 15px;
        font-size: .9rem;
      }
    }
  }
} // root end

.vote-modal {
  .dashed-border {
    border: 1px dashed $color-brown;
    padding-bottom: 10px;
    margin: 10px;
  }
  .modal-content {
    overflow: hidden;
  }
  .vote-success {
    background-color: #a28356;
    font-size: 2rem;
    line-height: 200%;
    color: #fff;
    font-weight: bold;
  }
  .vote-modal-header {
    height: 0;
    padding-top: 12%;
    background: image_url('innoawards/2015/vote-modal-title') center center no-repeat;
    background-size: 80%;
    margin: 20px 0;
    position: relative;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
  }
  .vote-modal-logo {
    border-radius: 20px;
    max-width: 110px;
    max-height: 110px;
  }
  .vote-modal-name {
    font-size: 1.2rem;
    margin: 10px 0 20px 0;
    font-weight: bold;
  }
  .share-des {
    font-size: 1rem;
    max-width: 80%;
    margin: 20px auto;
  }
  .share-icons {
    .share-icon {
      margin: 0 15px;
    }
  }
  .share-icon.wechat {
    position: relative;
    .wechat-qr {
      opacity: 0;
      padding: 5px;
      width: 100px;
      border: 2px solid #AC8E61;
      background-color: #fff;
      position: absolute;
      transform: scale(0);
      margin-left: -50px;
      top: auto;
      bottom: 40px;
      transform-origin: bottom center;
      transition: .3s;
    }
    &:hover .wechat-qr {
      opacity: 1;
      transform: scale(1);
    }
  }
  @media (min-width: 768px) {
    .modal-dialog {
      width: 500px;
    }
    .dashed-border {
      border-bottom: none;
      margin-bottom: 0;
    }
  }
  @include mobile {
    .share-des {
      max-width: 90%;
      margin: 10px auto;
    }
    .vote-modal-header {
      font-size: 1rem;
      margin: 10px 0;
    }
    .vote-modal-name {
      margin-bottom: 10px;
    }
    .vote-success {
      font-size: 1.6rem;
      position: relative;
      .close-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: url('') center center no-repeat;
        width: 30px;
        height: 30px;
      }
    }
  }
  .wechat-share-tip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7) image_url('wechat-share-tip.png') right top no-repeat;
    background-size: 70% auto;
  }
} // vote-modal end
